import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个整数:");
        int num = sc.nextInt();
        System.out.println("这个数的每一位是:");
        int key = 0;
        while (true) {
            if (num == 0) {
                break;
            }
            key = num % 10;
            num = num / 10;
            System.out.print(key + " ");
        }
    }
}

